<section id="content">

    <form action="" id="myform" method="post">
        <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td align="right" valign="top">会员列表：</td>
                <td>
                    <div class="wi80-BFB re-no viplist" >
                        {volist name="waituser" id="list"}
                        <input type="hidden" name="user_id[]" value="{$list.user_id}" />
                        <p><span>ID:{$list['user_id']}</span>&nbsp;<span>昵称:{$list['nickname']}</span></p>
                        {/volist}
                    </div>
                </td>
            </tr>
            <tr>
                <td><div>&nbsp;</div></td>
                <td><div>&nbsp;</div></td>
            </tr>
            <tr style="height:60px">
                <td class="pa-50-0">&nbsp;</td>
                <td align="right">
                    <button type="submit" onclick="ajax_form()" style="padding: 4px 16px;cursor: pointer;"><span>提交</span></button>
                </td>
            </tr>
        </table>
    </form>
    <script type="text/javascript">
        function ajax_form(){
            $.ajax({
                type : "POST",
                url:"{:url('Admin/allproducts/dowaituser')}",
                data : $('#myform').serialize(),// 你的formid
                success: function(data){
                    alert('操作成功');
                    //history.go(-1);
                    //window.location.href='admin/allproducts/onlineUser';
                    window.parent.location.href="/admin/allproducts/onlineUser/";

                }
            });
        }
        function checkform(){
            document.getElementById("myform").submit();
        }

    </script>

</section>